Optimal. Leaf size=91 \[ \frac {5 x}{16 a^3 c^3}+\frac {5 \cos (e+f x) \sin (e+f x)}{16 a^3 c^3 f}+\frac {5 \cos ^3(e+f x) \sin (e+f x)}{24 a^3 c^3 f}+\frac {\cos ^5(e+f x) \sin (e+f x)}{6 a^3 c^3 f} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 91, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 3, integrand size = 31, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.097, Rules used = {3603, 2715, 8}
\begin {gather*} \frac {\sin (e+f x) \cos ^5(e+f x)}{6 a^3 c^3 f}+\frac {5 \sin (e+f x) \cos ^3(e+f x)}{24 a^3 c^3 f}+\frac {5 \sin (e+f x) \cos (e+f x)}{16 a^3 c^3 f}+\frac {5 x}{16 a^3 c^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 2715
Rule 3603
Rubi steps
\begin {align*} \int \frac {1}{(a+i a \tan (e+f x))^3 (c-i c \tan (e+f x))^3} \, dx &=\frac {\int \cos ^6(e+f x) \, dx}{a^3 c^3}\\ &=\frac {\cos ^5(e+f x) \sin (e+f x)}{6 a^3 c^3 f}+\frac {5 \int \cos ^4(e+f x) \, dx}{6 a^3 c^3}\\ &=\frac {5 \cos ^3(e+f x) \sin (e+f x)}{24 a^3 c^3 f}+\frac {\cos ^5(e+f x) \sin (e+f x)}{6 a^3 c^3 f}+\frac {5 \int \cos ^2(e+f x) \, dx}{8 a^3 c^3}\\ &=\frac {5 \cos (e+f x) \sin (e+f x)}{16 a^3 c^3 f}+\frac {5 \cos ^3(e+f x) \sin (e+f x)}{24 a^3 c^3 f}+\frac {\cos ^5(e+f x) \sin (e+f x)}{6 a^3 c^3 f}+\frac {5 \int 1 \, dx}{16 a^3 c^3}\\ &=\frac {5 x}{16 a^3 c^3}+\frac {5 \cos (e+f x) \sin (e+f x)}{16 a^3 c^3 f}+\frac {5 \cos ^3(e+f x) \sin (e+f x)}{24 a^3 c^3 f}+\frac {\cos ^5(e+f x) \sin (e+f x)}{6 a^3 c^3 f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 49, normalized size = 0.54 \begin {gather*} \frac {60 e+60 f x+45 \sin (2 (e+f x))+9 \sin (4 (e+f x))+\sin (6 (e+f x))}{192 a^3 c^3 f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.18, size = 118, normalized size = 1.30
method | result | size |
risch | \(\frac {5 x}{16 a^{3} c^{3}}+\frac {\sin \left (6 f x +6 e \right )}{192 a^{3} c^{3} f}+\frac {3 \sin \left (4 f x +4 e \right )}{64 a^{3} c^{3} f}+\frac {15 \sin \left (2 f x +2 e \right )}{64 a^{3} c^{3} f}\) | \(71\) |
derivativedivides | \(\frac {-\frac {5 i \ln \left (\tan \left (f x +e \right )-i\right )}{32}-\frac {i}{16 \left (\tan \left (f x +e \right )-i\right )^{2}}-\frac {1}{48 \left (\tan \left (f x +e \right )-i\right )^{3}}+\frac {5}{32 \left (\tan \left (f x +e \right )-i\right )}+\frac {i}{16 \left (\tan \left (f x +e \right )+i\right )^{2}}+\frac {5 i \ln \left (\tan \left (f x +e \right )+i\right )}{32}-\frac {1}{48 \left (\tan \left (f x +e \right )+i\right )^{3}}+\frac {5}{32 \left (\tan \left (f x +e \right )+i\right )}}{f \,a^{3} c^{3}}\) | \(118\) |
default | \(\frac {-\frac {5 i \ln \left (\tan \left (f x +e \right )-i\right )}{32}-\frac {i}{16 \left (\tan \left (f x +e \right )-i\right )^{2}}-\frac {1}{48 \left (\tan \left (f x +e \right )-i\right )^{3}}+\frac {5}{32 \left (\tan \left (f x +e \right )-i\right )}+\frac {i}{16 \left (\tan \left (f x +e \right )+i\right )^{2}}+\frac {5 i \ln \left (\tan \left (f x +e \right )+i\right )}{32}-\frac {1}{48 \left (\tan \left (f x +e \right )+i\right )^{3}}+\frac {5}{32 \left (\tan \left (f x +e \right )+i\right )}}{f \,a^{3} c^{3}}\) | \(118\) |
norman | \(\frac {\frac {5 x}{16 a c}+\frac {11 \tan \left (f x +e \right )}{16 a c f}+\frac {5 \left (\tan ^{3}\left (f x +e \right )\right )}{6 a c f}+\frac {5 \left (\tan ^{5}\left (f x +e \right )\right )}{16 a c f}+\frac {15 x \left (\tan ^{2}\left (f x +e \right )\right )}{16 a c}+\frac {15 x \left (\tan ^{4}\left (f x +e \right )\right )}{16 a c}+\frac {5 x \left (\tan ^{6}\left (f x +e \right )\right )}{16 a c}}{\left (1+\tan ^{2}\left (f x +e \right )\right )^{3} a^{2} c^{2}}\) | \(136\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains complex when optimal does not.
time = 1.34, size = 97, normalized size = 1.07 \begin {gather*} \frac {{\left (120 \, f x e^{\left (6 i \, f x + 6 i \, e\right )} - i \, e^{\left (12 i \, f x + 12 i \, e\right )} - 9 i \, e^{\left (10 i \, f x + 10 i \, e\right )} - 45 i \, e^{\left (8 i \, f x + 8 i \, e\right )} + 45 i \, e^{\left (4 i \, f x + 4 i \, e\right )} + 9 i \, e^{\left (2 i \, f x + 2 i \, e\right )} + i\right )} e^{\left (-6 i \, f x - 6 i \, e\right )}}{384 \, a^{3} c^{3} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.37, size = 296, normalized size = 3.25 \begin {gather*} \begin {cases} \frac {\left (- 103079215104 i a^{15} c^{15} f^{5} e^{18 i e} e^{6 i f x} - 927712935936 i a^{15} c^{15} f^{5} e^{16 i e} e^{4 i f x} - 4638564679680 i a^{15} c^{15} f^{5} e^{14 i e} e^{2 i f x} + 4638564679680 i a^{15} c^{15} f^{5} e^{10 i e} e^{- 2 i f x} + 927712935936 i a^{15} c^{15} f^{5} e^{8 i e} e^{- 4 i f x} + 103079215104 i a^{15} c^{15} f^{5} e^{6 i e} e^{- 6 i f x}\right ) e^{- 12 i e}}{39582418599936 a^{18} c^{18} f^{6}} & \text {for}\: a^{18} c^{18} f^{6} e^{12 i e} \neq 0 \\x \left (\frac {\left (e^{12 i e} + 6 e^{10 i e} + 15 e^{8 i e} + 20 e^{6 i e} + 15 e^{4 i e} + 6 e^{2 i e} + 1\right ) e^{- 6 i e}}{64 a^{3} c^{3}} - \frac {5}{16 a^{3} c^{3}}\right ) & \text {otherwise} \end {cases} + \frac {5 x}{16 a^{3} c^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.69, size = 72, normalized size = 0.79 \begin {gather*} \frac {\frac {15 \, {\left (f x + e\right )}}{a^{3} c^{3}} + \frac {15 \, \tan \left (f x + e\right )^{5} + 40 \, \tan \left (f x + e\right )^{3} + 33 \, \tan \left (f x + e\right )}{{\left (\tan \left (f x + e\right )^{2} + 1\right )}^{3} a^{3} c^{3}}}{48 \, f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 4.72, size = 57, normalized size = 0.63 \begin {gather*} \frac {5\,x}{16\,a^3\,c^3}+\frac {{\cos \left (e+f\,x\right )}^6\,\left (\frac {5\,{\mathrm {tan}\left (e+f\,x\right )}^5}{16}+\frac {5\,{\mathrm {tan}\left (e+f\,x\right )}^3}{6}+\frac {11\,\mathrm {tan}\left (e+f\,x\right )}{16}\right )}{a^3\,c^3\,f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________